package com.practice3.exercise;

public class Lifecycle {
    public String content;

    public Integer id;

    public void setContent(String content) {
        this.content = content;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void init(){
        System.out.println("请注册");
    }


    public void print(){
        System.out.println("请输入账户:" + content);
    }

    public void print2(){
        System.out.println("请输入密码:" + id);
    }

    public void destroy(){
        System.out.println("注册成功");
    }

    @Override
    public String toString() {
        return "Lifecycle{" +
                "content='" + content + '\'' +
                ", id=" + id +
                '}';
    }
}
